--[[/**
 * 这个buff在敌人身上
 * 自己死亡后触发
 * 给莱斯特叠 大招的目标数量 + 1
-- */]]

---@class BuffEffect342100 : BaseBuffEffect
BuffEffect342100 = ClientFight.CreateClass("BuffEffect342100", ClientFight.BaseBuffEffect)
local t = BuffEffect342100

---@param fight Fight
---@param buff FighterBuff
function t:action(fight, buff, ...)
    local fighter = buff.source;
    local killAmount = fighter.parametersByObject[SkillEffect342101.SKILL_EFFECT_342101_KILL_AMOUNT] or 0;
    fighter.parametersByObject[SkillEffect342101.SKILL_EFFECT_342101_KILL_AMOUNT] =  killAmount + 1;
    SkillRoleMgr.savePathFile(string.format("[%s][EFFECT]Fighter %s Buff%s 在莱斯特的标记下死亡, 给莱斯特增加下一次大招的目标+1",
            fight.frame, fighter.fighterId, buff.modelId));
    return ClientFight.BaseBuffEffect.action(self, fight, buff, ...);
end

t.New()